home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
PC World Komputer 2010 April
/
PCWorld0410.iso
/
pluginy Firefox
/
3239
/
3239.xpi
/
chrome
/
inbasicph.jar
/
content
/
jAbout.js
< prev
next >
Wrap
Text File
|
2009-04-03
|
685b
|
16 lines
var PhProxy_about = {
open_link : function (URL) {
var wm = Components.classes["@mozilla.org/appshell/window-mediator;1"]
.getService(Components.interfaces.nsIWindowMediator);
var win = wm.getMostRecentWindow("navigator:browser");
var gBrowser = win.getBrowser();
gBrowser.loadOneTab(URL, null, null, null, false, false);
},
open_addon : function (URL) {
var wm = Components.classes['@mozilla.org/appshell/window-mediator;1']
.getService(Components.interfaces.nsIWindowMediator);
var mainWindow = wm.getMostRecentWindow('navigator:browser');
var newTab = mainWindow.getBrowser().addTab(URL);
mainWindow.getBrowser().selectedTab = newTab;
}
}